home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Purity / Purity #22 (1994-01-19)(Diesel)(DE)[WB].zip / Purity #22 (1994-01-19)(Diesel)(DE)[WB].adf / MagicBlank / POINTS.h < prev    next >
Text File  |  1994-01-17  |  632b  |  36 lines

  1. {$if not def MAGICBLANK_POINTS_H}
  2.  
  3. CONST
  4.   MAGICBLANK_POINTS_H = 3;
  5.  
  6. PROCEDURE Points;
  7. VAR
  8.   dum : INTEGER;
  9.   l : LONG;
  10. BEGIN
  11.   dum := 15; { 15 Punkte-Bildschirme, dann Tschüss... }
  12.   sig1 := SetSignal(0,0) AND SBF_CF;
  13.   WHILE sig1 = 0 DO
  14.   BEGIN
  15.     SetRast(rp,0);
  16.     FOR i := 1 TO 300 DO
  17.     BEGIN
  18.       SetAPen(rp,Random(6)+1);
  19.       l := WritePixel(rp,Random(sp^.Width),Random(sp^.Height));
  20.       sig1 := SetSignal(0,0) AND SBF_CF;
  21.     END;
  22.     Delay(2);
  23.     sig1 := SetSignal(0,0) AND SBF_CF;
  24.     Dec(dum);
  25.     IF dum <= 0 THEN
  26.     BEGIN
  27.       DisplayBeep(sp);
  28.       SetRast(rp,0);
  29.       Exit;
  30.     END;
  31.   END;
  32. END;
  33.  
  34. {$endif}
  35.  
  36.